package com.java2_4;

//javabean;
public class carInformation {
    private String name;
    private double money;
    private int index;

    public carInformation(){  //构造器

    }
    public carInformation(String name, double money, int index) {
        this.name = name;
        this.money = money;
        this.index = index;
    }

    public String getName(){
        return name;
    }

    public void setName(String name){
        this.name = name;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }
}
